package demo7;

import java.util.Arrays;

public class test {
    public static void main(String[] args) {
        MyHeap myHeap = new MyHeap();
        int[] arr = new int[] {27,15,19,18,28,34,65,49,25,37};
        myHeap.initArr(arr);
        myHeap.createMaxHeap();
        System.out.println(Arrays.toString(myHeap.arr));

        myHeap.heapSort();
        System.out.println(Arrays.toString(myHeap.arr));

//        myHeap.push(80);
//        System.out.println(Arrays.toString(myHeap.arr));
//        System.out.println(myHeap.poll());
    }
}
